home *** CD-ROM | disk | FTP | other *** search
- Path: mail2news.demon.co.uk!genesis.demon.co.uk
- From: Lawrence Kirby <fred@genesis.demon.co.uk>
- Newsgroups: comp.lang.c
- Subject: Re: Jobs running under Unix.
- Date: Thu, 18 Apr 96 21:40:16 GMT
- Organization: none
- Message-ID: <829863616snz@genesis.demon.co.uk>
- References: <829283553snz@tarik.demon.co.uk> <danpop.829743180@news.cern.ch>
- Reply-To: fred@genesis.demon.co.uk
- X-NNTP-Posting-Host: genesis.demon.co.uk
- X-Newsreader: Demon Internet Simple News v1.27
- X-Mail2News-Path: genesis.demon.co.uk
-
- In article <danpop.829743180@news.cern.ch> danpop@mail.cern.ch "Dan Pop" writes:
-
- ...
-
- >The method is far from perfect, but can be improved. For example,
- >using a lock directory instead of a lock file will eliminate a possible
- >race condition under Unix.
-
- If you're going beyond standard C by manipulating directories you might as
- well have used open() with O_EXCL in the first place. This really is a
- question for comp.unix.programmer - there is no satisfactory answer in
- standard C.
-
- --
- -----------------------------------------
- Lawrence Kirby | fred@genesis.demon.co.uk
- Wilts, England | 70734.126@compuserve.com
- -----------------------------------------
-